package com.zzyl.nursing.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zzyl.common.core.domain.BaseEntity;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.List;

@Data
public class NursingTaskDto extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;


    /**
     * 护理员id  多个id,以逗号分隔
     */
    private String nursingId;

    private Long taskId;
    /**
     * 项目id
     */
    private Long projectId;

    /**
     * 护理项目名称
     */
    private String projectName;

    /**
     * 老人id
     */
    private Long elderId;

    /**
     * 老人姓名
     */
    private String elderName;

    /**
     * 床位编号
     */
    private String bedNumber;

    /**
     * 预计服务时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")

    private LocalDateTime estimatedServerTime;

    /**
     * 实际服务时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime realServerTime;

    /**
     * 执行记录
     */
    private String mark;

    /**
     * 取消原因
     */
    private String cancelReason;

    /**
     * 状态  1待执行 2已执行 3已关闭
     */
    private Integer status;
    // 增加状态列表字段
    private List<Integer> statusList;

    /**
     * 执行图片
     */
    private String taskImage;
    /**
     * 护理员姓名
     */
    private List<String> nursingName;

    private String nursingLevelName;

    private String sex;
    private String reason;

    private Integer age;

    private String updater;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

}
